<div class="layuimini-main">

    <div class="layui-form layuimini-form">
        <div class="layui-form-item">
            <label class="layui-form-label">上级分类</label>
            <div class="layui-input-block">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">名称</label>
            <div class="layui-input-block">
                <input type="text" name="name" lay-verify="required" disabled value="{{ $data['name'] }}" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label for="" class="layui-form-label">邮箱</label>
            <div class="layui-input-block">
                <input type="text" name="email" placeholder="邮箱" value="{{ $data['email'] }}" class="layui-input" disabled>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">电话</label>
            <div class="layui-input-block">
                <input type="text" name="phone" placeholder="电话" value="{{ $data['phone'] }}" class="layui-input" disabled >
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">IP</label>
            <div class="layui-input-block">
                <input type="text" name="IP" placeholder="IP" value="{{ $data['ip'] }}" class="layui-input" disabled>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">Message</label>
            <div class="layui-input-block">
                <textarea name="message" disabled class="layui-textarea" placeholder="留言消息">{{ $data['message'] }}</textarea>
            </div>
        </div>
    </div>
</div>
<script>
    layui.use(['form','iconPickerFa'], function () {
        var form = layui.form;

        /**
         * 初始化表单，要加上，不然刷新部分组件可能会不加载
         */
        form.render();

    });
</script>
